package com.utooo.pojo.domain.purchase.order;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.utooo.pojo.domain.BaseDO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 订单关联发票表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("aigis_cgfpgl_2025040108115112")
public class OrderInvoiceAssociationDO extends BaseDO {

    /**
     * 来源单号
     */
    @TableField("relationFormField181")
    private String sourceDocumentNo;

    /**
     * 开票单号
     */
    @TableField("comInputField118")
    private String invoiceNo;

    /**
     * 对票人
     */
    @TableField("userSelectField122")
    private String invoicer;

    /**
     * 公司
     */
    @TableField("selectField112")
    private String company;

    /**
     * 供应商名称
     */
    @TableField("selectField113")
    private String supplierName;

    /**
     * 供应商编码
     */
    @TableField("comInputField120")
    private String supplierCode;

    /**
     * 采方备注
     */
    @TableField("comInputField123")
    private String buyerRemark;

    /**
     * 发票代码
     */
    @TableField("popupTableSelectField131")
    private String invoiceCode;

    /**
     * 发票号码
     */
    @TableField("comInputField132")
    private String invoiceSerialNo;

    /**
     * 不含税金额
     */
    @TableField("numInputField127")
    private BigDecimal amountExcludingTax;

    /**
     * 税额
     */
    @TableField("numInputField128")
    private BigDecimal taxAmount;

    /**
     * 价税合计
     */
    @TableField("numInputField133")
    private BigDecimal totalAmountIncludingTax;

    /**
     * 开票抬头
     */
    @TableField("comInputField180")
    private String invoiceTitle;

    /**
     * 购买方纳税人识别号
     */
    @TableField("comInputField135")
    private String buyerTaxpayerId;

    /**
     * 购买方地址、电话
     */
    @TableField("comInputField136")
    private String buyerAddressAndPhone;

    /**
     * 购买方开户行及账号
     */
    @TableField("comInputField137")
    private String buyerBankAndAccount;

    /**
     * 销售方
     */
    @TableField("comInputField138")
    private String seller;

    /**
     * 销售方纳税人识别号
     */
    @TableField("comInputField139")
    private String sellerTaxpayerId;

    /**
     * 销售方地址、电话
     */
    @TableField("comInputField140")
    private String sellerAddressAndPhone;

    /**
     * 销售方开户行及帐号
     */
    @TableField("comInputField141")
    private String sellerBankAndAccount;

    /**
     * 开票引用单据类型
     */
    @TableField("selectField144")
    private String referenceDocumentType;

    /**
     * 发票待关联总金额
     */
    @TableField("numInputField145")
    private BigDecimal pendingAssociationAmount;

    /**
     * 本次关联总金额
     */
    @TableField("numInputField146")
    private BigDecimal currentAssociationAmount;

    /**
     * 状态
     */
    @TableField("selectField182")
    private String status;
}